package designpattern.demo.creational.builderpattern.builder;

import designpattern.demo.creational.builderpattern.product.Product;


/**
 * 具体建造者
 */
public class ConcreteProductBuilder extends Builder {
    private Product product = new Product();

    //设置产品零件
    public void setPart() {
        /*
         * 产品类内的逻辑处理
         */
        System.out.println("设置产品零件");
    }

    //组建一个产品
    public Product buildProduct() {
        return product;
    }
}
